home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / sheriffa / licscode.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-19  |  8.7 KB  |  173 lines

  1. // This is a part of the Sheriff System Development Kit.
  2. // Copyright (C) 1997-1998 Acudata Limted.
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Sheriff System Development Kit and related
  7. // electronic documentation provided with the SDK.
  8.  
  9. #ifndef LICSCODE_H
  10. #define LICSCODE_H
  11.  
  12. //Get LS Status Code
  13. #define SLS_SCODE(hr)   ((hr) & 0xFFFF)
  14. //Everything is fine
  15. #define SLS_SUCCESS        S_OK
  16. //General Error (unknown error)
  17. #define SLS_ERROR                    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1000)
  18.  
  19. //System Error
  20. #define SLS_E_SYSTEM_ERROR            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1001)
  21. //Invalid Product Code
  22. #define SLS_E_PRODUCT_CODE            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1002)
  23. //Invalid Reference Code
  24. #define SLS_E_REFERENCE_CODE        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1003)
  25. //Invalid Machine Code
  26. #define SLS_E_MACHINE_CODE            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1004)
  27. //Invalid System Time
  28. #define SLS_E_SYSTEM_TIME            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1005)
  29. //Not Enough Memory
  30. #define SLS_E_OUT_OF_MEMORY            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1006)
  31. //Not Enough Handle
  32. #define SLS_E_OUT_OF_HANDLE            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1007)
  33. //Illegal Challenge
  34. #define SLS_E_CHALLENGE_ILLEGAL        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1008)
  35. //Unsuported challenge
  36. #define SLS_E_CHALLENGE_UNSUPORTED    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1009)
  37. //Connction Sink ID invalid
  38. #define SLS_E_CONNECTION_ID            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x100A)
  39. //Invalid Queue Number
  40. #define SLS_E_QUEUE_NUMBER            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x100B)
  41. //Queue Too Long
  42. #define SLS_E_QUEUE_TOO_LONG        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x100C)
  43. //Failed To Locate Database Path
  44. #define SLS_E_DATABASE_PATH            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x100D)
  45. //Invalid SuitID
  46. #define SLS_E_SUIT_ID                MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x100E)
  47. //Unregistered Suit
  48. #define SLS_E_SUIT_UNREGISTERED        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x100F)
  49. //Invalid Augument passed to function
  50. #define SLS_E_AUGUMENT_INVALID        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1010)
  51. //Invalid Handle
  52. #define SLS_E_LICENCE_HANDLE        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1011)
  53. //Unregistered product/licence
  54. #define SLS_E_LICENCE_UNREGISTERED    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1012)
  55. //Licence Undefined
  56. #define SLS_E_LICENCE_UNDEFINED        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1013)
  57. //Licence (run out of cocurrent users)
  58. #define SLS_E_LICENCE_EXCEEDED        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1014)
  59. //Licence Exhausted (run out of meter units)
  60. #define SLS_E_LICENCE_EXHAUSTED        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1015)
  61. //Licence Expired
  62. #define SLS_E_LICENCE_EXPIRED        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1016)
  63. //Licence Invalid (corrupted, tamped)
  64. #define SLS_E_LICENCE_INVALID        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1017)
  65. //Licence Suspended
  66. #define SLS_E_LICENCE_SUSPENDED        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1018)
  67. //Licence Terminated
  68. #define SLS_E_LICENCE_TERMINATED    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1019)
  69. //Licence Unavaliable
  70. #define SLS_E_LICENCE_UNAVAILABLE    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x101A)
  71. //Licence unit not defined
  72. #define SLS_E_UNIT_UNDEFINED        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x101B)
  73. //Licence unit shortage (units exceeds reserved units)
  74. #define SLS_E_UNIT_EXCEEDED            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x101C)
  75. //Index used to enumerate products
  76. #define SLS_E_PRODUCT_INDEX            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x101D)
  77. //Bad Secret
  78. #define SLS_E_BAD_SECRET            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x101E)
  79. //Bad MAC(Message Authentication Code)
  80. #define SLS_E_BAD_MAC                MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x101F)
  81.  
  82. //Licence File Error(used by Sheriff Light only)
  83. //The file could not be located.
  84. #define SLS_E_FILE_NOT_FOUND        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1020)    
  85. //All or part of the path is invalid.
  86. #define SLS_E_FILE_BAD_PATH            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1021)    
  87. //The permitted number of open files was exceeded.
  88. #define SLS_E_FILE_TOO_MANY            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1022)    
  89. //The file could not be accessed
  90. #define SLS_E_FILE_ACCESS_DENIED    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1023)    
  91. //There was an attempt to use an invalid file handle.
  92. #define SLS_E_FILE_BAD_HANDLE        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1024)    
  93. //There was an error trying to set the file pointer.
  94. #define SLS_E_FILE_BAD_SEEK            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1025)    
  95. //There was a hardware error.
  96. #define SLS_E_FILE_HARDIO            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1026)    
  97. //SHARE.EXE was not loaded, or a shared region was locked.
  98. #define SLS_E_FILE_SHARING            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1027)    
  99. //There was an attempt to lock a region that was already locked.
  100. #define SLS_E_FILE_LOCKING            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1028)    
  101. //The disk is full.
  102. #define SLS_E_FILE_DISK_FULL        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1029)    
  103. //The end of file was reached. 
  104. #define SLS_E_FILE_EOF                MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x102A)    
  105. //CRC error
  106. #define SLS_E_FILE_BAD_CRC            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x102B)    
  107. //Signature error
  108. #define    SLS_E_FILE_BAD_SIGNATURE    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x102C)
  109. //Corruption
  110. #define    SLS_E_FILE_BAD_DATA            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x102D)
  111. //Disk Signature error
  112. #define    SLS_E_DISK_BAD_SIGNATURE    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x102E)
  113. //Failed to remove file
  114. #define SLS_E_FILE_REMOVE_FAILED    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x102F)
  115. //Invalid Licence Path
  116. #define    SLS_E_PATH_INVALID            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1030)
  117. //Failed to create licecne path
  118. #define    SLS_E_PATH_CREATE            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1031)
  119. //Access(Read/Write) Denied
  120. #define SLS_E_PATH_ACCESS_DENIED    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1032)    
  121. //Registery operation failure
  122. #define SLS_E_REG_FAILURE            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1033)
  123. //Licence File been tampered
  124. #define SLS_E_BAD_LICENCE            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1034)
  125. //Registry has been tampered
  126. #define SLS_E_BAD_REGISTRY            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1035)
  127. //Machine Signature is wrong
  128. #define SLS_E_BAD_MACHINE            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1036)
  129. //Failed to get machine code
  130. #define SLS_E_OP_MACHINE_CODE        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1037)
  131. //Failed to get machine signature
  132. #define SLS_E_OP_MACHINE_SIGN        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1038)
  133. //Failed to get file signature
  134. #define SLS_E_OP_FILE_SIGN            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1039)
  135. //Failed to get disk signature
  136. #define SLS_E_OP_DISK_SIGN            MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x103A)
  137. //Failed to terminate licence
  138. #define SLS_E_OP_TERMINATION        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x103B)
  139. //licence error
  140. #define SLS_E_LICENCE_BAD_TIME        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x103C)
  141. //licence error
  142. #define SLS_E_LICENCE_BAD_UNIT        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x103D)
  143. //licence error
  144. #define SLS_E_LICENCE_BAD_DATE        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x103E)
  145. //licence error
  146. #define SLS_E_LICENCE_BAD_COUSERS    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x103F)
  147. //licence error
  148. #define SLS_E_LICENCE_BAD_ACCESSKEY MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1040)
  149. //Licence key is incorrect
  150. #define SLS_E_LICENCE_BAD_LICKEY    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1041)
  151. //bad import licence key
  152. #define SLS_E_IMPORT_BAD_LICKEY        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1042)
  153. //incorrect import source signature
  154. #define SLS_E_IMPORT_BAD_SOURCE        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1043)
  155. //Cannot reinstate licence            
  156. #define SLS_E_REINSATTE_BAD_SOURCE    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1044)
  157. //Export not allowed
  158. #define SLS_E_EXPORT_NOT_ALLOWED    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1045)
  159. //User Index out of range
  160. #define SLS_E_BAD_USER_INDEX        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1046)    
  161. //Machchine Signatures in reference do not match
  162. #define SLS_E_UPID_SIGNATURE_REF    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1047)
  163. //Product Signatures in reference do not match
  164. #define SLS_E_UMID_SIGNATURE_REF    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1048)
  165. //Machchine Signatures in licence key do not match
  166. #define SLS_E_UPID_SIGNATURE_KEY    MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1049)
  167. //Refernece Signatutes in licence key do not match
  168. #define SLS_E_REF_SIGNATURE_KEY        MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x104A)
  169. //
  170. #define SLS_LAST_ERROR                MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x104B)
  171.  
  172. #endif
  173.